package com.leagueoflegends.mapper;

import com.leagueoflegends.bean.Champion;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ChampionMapper {

    void insert(Champion champion);

    void delete(Integer id);

    void update(Champion champion);

    void regainChampion(int id);

    Champion selectById(Integer id);

    List<Champion> selectAll(@Param("type") String type, @Param("find") String find);


    // 勿删
    /**
     * 得到所有英雄信息
     * @return
     */
    List<Champion> getAllChampion();

    // 勿删
    /**
     * 根据title获取英雄
     * @param title
     * @return
     */
    List<Champion> getChampionByTitle(String title);

    // 勿删
    List<Champion> selectByJob(String job);
}
